import com.itheima.demo01.Student;

public class Main {
    public static void main(String[] args) {
        //ctl + y 删除当前行

        //1.static 静态类
        Student.teacherName = "李老师";
        //创建第一个学生对象
        Student s1 = new Student();
        s1.setName("张三");
        s1.setAge(20);
        s1.setGender("男");

        s1.study();
        s1.show();

        //创建第一个学生对象
        Student s2 = new Student();
        s2.setName("李四");
        s2.setAge(21);
        s2.setGender("男");
        s2.study();
        s2.show();

        //2.继承

    }
}
